package com.farsight.service;
import  android.util.Log; 

public class BeepService {
	/*
     * load native service.
     */
    static {
        System.loadLibrary ( "beep_runtime" );
    }

    public BeepService() {
        int icount ;
        _init ();
        Log.d ( "Beep Service" , "Init OK " );
    }

    /*
     * BEEP native methods.
     */
    public String set_on() {
        Log.e ( "Beep Service" , "run into on " );
        _set_on ();
        return "beep on" ;
    }
 

    public String set_off() {
        Log.e ( "Beep Service" , "run into off " );
           _set_off ();
        return "beep off" ;
    }

     /*
     * declare all the native interface.
     */
    private static native boolean _init();
    private static native int _set_on();
    private static native int _set_off();
    private static native int _get_count();
}
